package com.sky.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Appeal implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 违法主体 1车辆 2人
     */
    public static final Integer CAR = 1;
    public static final Integer PERSON=2;
    /**
     * 处理状态 1未处理 2已处理
     */
    public static final Integer TO_BE_CONFIRMED = 1;
    public static final Integer CONFIRMED = 2;
    public static final Integer REJECTED = 3;

    private Long id;
    //申诉来源
    private Long violationId;
    //违法主体 1车辆 2人
    private Integer type;
    //违法类型
    private Integer violationType;
    //图片路径
    private String imagePath;
    //地点
    private String location;
    //用户申诉状态 0待处理 1批准 2驳回
    private Integer status;
    //违法时间
    private LocalDateTime beginTime;
    //申诉时间
    private LocalDateTime createTime;
    //申诉人id
    private Long createUser;
    //处理时间
    private LocalDateTime updateTime;
    //处理人id
    private Long updateUser;
    //申诉证据
    private String file;
    //车牌号
    private String carId;
    //处理意见
    private String detail;
    //申诉理由
    private String reason;
}
